package work.smcp.workrecord;

import cn.hutool.core.io.FileUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONUtil;

import java.nio.charset.Charset;

public class Demo2 {
    public static void main(String[] args) {
        String json = FileUtil.readString("C:\\work-records\\w王明欢\\l-smcp草稿箱接口调用\\requestbody.json", Charset.defaultCharset());
        JSONArray array = JSONUtil.parseArray(json);

        for (Object o : array) {
            HttpResponse response = HttpRequest.post("http://47.100.107.64:16100/api/social-wechat/smcp/maje/social_draft")
                    .body(o.toString())
                    .execute();
            System.out.println();
        }

    }
}
